package inesv.activeMQ.activeMQ_springboot;


import java.io.Serializable;

/**
 * 邮件实体
 */
public class Email implements Serializable {

    private static final long serialVersionUID = 7534650859786461723L;


    String from;
    String to;
    String topic;
    String content;

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getTopic() {
        return topic;
    }

    public void setTopic(String topic) {
        this.topic = topic;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "Email{" +
                "from='" + from + '\'' +
                ", to='" + to + '\'' +
                ", topic='" + topic + '\'' +
                ", content='" + content + '\'' +
                '}' +
                ", time='" + System.currentTimeMillis() + '\'';
    }
}
